package com.gym.code.generator.model.mapping;

import java.io.File;

/**
 * 
 * @author xinchun.wang 
   @email: 532002108@qq.com
 * @createTime 2015-4-12 上午9:58:56
 */
public abstract class BaseGenerateModel {
	/**
	 * eg: D:\gym\gym-code-generator\src\main\java
	 */
	protected String basePath;
	/**
	 * eg: com.gym.code.generator.model.mapping
	 */
	protected String packagePath;
	protected String creater;

	protected String desc;
	public String getPackagePath() {
		return packagePath;
	}

	public void setPackagePath(String packagePath) {
		this.packagePath = packagePath;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public String getBasePath() {
		return basePath;
	}

	public void setBasePath(String basePath) {
		this.basePath = basePath;
	}
	
	protected abstract String getFileName();
	
	public abstract String getPackageName();
	
	public String getAllPath() {
		return basePath +(basePath.endsWith(File.separator) ? "":File.separator)+ getPackageName().replace('.',File.separatorChar) +File.separatorChar+getFileName() + ".java";
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	
}
